home *** CD-ROM | disk | FTP | other *** search
/ Interweave Knits Collection 2007 / Interweave Knits Collection 2007.iso / mac / Install Adobe Reader 9 / Mac PowerPC / AdbeRdr910_en_US_ppc.pkg / Contents / Resources / postupgrade < prev   
Text File  |  2009-02-27  |  1KB  |  39 lines

  1. #!/bin/sh
  2.  
  3. if test -d /Users/Shared/AdbeInst; then
  4.     cd /Users/Shared/AdbeInst
  5.     find * -type d -exec mkdir '/Applications/{}' \;
  6.     if test $? -ne 0; then ret=1; fi
  7.     find * -type f -exec mv '{}' '/Applications/{}' \;
  8.     if test $? -ne 0; then ret=1; fi
  9.     cp -PRf * /Applications/
  10.     if test $? -ne 0; then ret=1; fi
  11.     cd ..
  12.     rm -rf AdbeInst
  13.     if test $? -ne 0; then ret=1; fi
  14. else
  15.     ret=0
  16. fi
  17.  
  18. if test -f /Users/.$USER/$USER.sparsebundle/Info.plist; then
  19. if test -d /System/Library/CoreServices/Installer.app/Contents/PlugIns/Summary.bundle; then
  20. osascript <<-EOF
  21. tell application "Installer"
  22. set mymsg to (localized string "InstallSucceededTitle" in bundle POSIX file "/System/Library/CoreServices/Installer.app/Contents/PlugIns/Summary.bundle")
  23. activate
  24. display dialog mymsg buttons {"OK"} default button 1 with icon 1
  25. end tell
  26. EOF
  27. else
  28. osascript <<-EOF
  29. tell application "Installer"
  30. set mymsg to (localized string "SuccessMessage" in bundle POSIX file "/Applications/Utilities/Installer.app/Contents/PlugIns/Summary.bundle")
  31. activate
  32. display dialog mymsg buttons {"OK"} default button 1 with icon 1
  33. end tell
  34. EOF
  35. fi
  36.     killall Installer
  37. fi
  38. exit $ret
  39.